from appium.webdriver.common.appiumby import AppiumBy

from page.base_page import BasePage
from page.edit_member_page import EditMemberPage


class MemberInfoPage(BasePage):
    def __init__(self, driver):
        super().__init__(driver)

    def to_edit_member_page(self) -> EditMemberPage:
        self.find(AppiumBy.CSS_SELECTOR, '[text = “编辑成员”]').click()
        return EditMemberPage(self.driver)
